package com.tuo51.evaluate.domain.news;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "article")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class Article extends Domain {
    @Column(name="articletitle", columnDefinition = "varchar(100) COMMENT '文章标题'")
    private String title;

    @Column(columnDefinition = "varchar(500) COMMENT '简介'")
    private String synopsis;

    @Column(name = "articleauthor", columnDefinition = "varchar(32) COMMENT '文章作者'")
    private String author;

    @Column(name = "keyword", columnDefinition = "varchar(100) COMMENT '文章关键字'")
    private String keyword;

    @Column(columnDefinition = "int default 0   COMMENT '文章状态'")
    private Integer status;

    @Column(columnDefinition = "int default 0   COMMENT '是否置顶'")
    private Integer istop;

    @Column(columnDefinition = "varchar(500) COMMENT '文章封面地址'")
    private String imgUrl;

    @Column(columnDefinition = "int default 0   COMMENT '文章类别'")
    private Integer typeId;

    @Column(columnDefinition = "varchar(500) COMMENT '静态化地址'")
    private String staticsurl;

    @Column(columnDefinition = "int default 0   COMMENT '是否静态化：0 已静态化 1：未静态化'")
    private Integer staticsstate;

    @Column(columnDefinition = " datetime  COMMENT ' 创建时间' ")
    private Date created;

    @Column(columnDefinition = "varchar(32) COMMENT '创建者ID'")
    private String createuserid;

    @Column(columnDefinition = "varchar(500) COMMENT '附件路径'")
    private String accessoriesurl;

    @Column(columnDefinition = "int default 0   COMMENT '附件状态'")
    private Integer accessoriesstate;

    @Column(columnDefinition = "varchar(500) COMMENT '文件地址'")
    private String originalpath;

    @Column(columnDefinition = "varchar(500) COMMENT '文章内容'")
    private String content;
}
